﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %><?xml version="1.0" encoding="utf-8"?>
<Response> 
            <Status><%
                        ModelState err = ViewContext.ViewData.ModelState["err"];
                        SLIC.Controllers.GenException result = null;

                        if (err != null)
                        {
                            result = (SLIC.Controllers.GenException)err.Errors.ElementAt(0).Exception;
	         
         %>
                <code><%: result.Code%></code>
                <description><%: result.Message%></description>  <% 
}
             else
             { %>
              <code>0</code>
                <description>Success</description> 
             <%} %> 
            </Status>
            <Data>

            <% if (Model != null)
               { %>
                   <ImageIDList>
                <%foreach (string item in Model)
                  { %>
                    <ImgID><%:item %></ImgID> 
                 <% } %></ImageIDList>
                <% } %>
	            <Server></Server>
                <DateTime></DateTime>
            </Data>
</Response>